package goiot.dto;

import java.util.List;

public class PageResult<T> {
	private int pageSize;
	private int pageNum;
	private int totalPage;
	private Long totalCount;
	private Boolean firstPage;
	private Boolean lastPage;
	private List<T> list;
	private List<?> searchAfter;

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public Long getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Long totalCount) {
		this.totalCount = totalCount;
	}

	public Boolean getFirstPage() {
		return firstPage;
	}

	public void setFirstPage(Boolean firstPage) {
		this.firstPage = firstPage;
	}

	public Boolean getLastPage() {
		return lastPage;
	}

	public void setLastPage(Boolean lastPage) {
		this.lastPage = lastPage;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	public List<?> getSearchAfter() {
		return searchAfter;
	}

	public void setSearchAfter(List<?> searchAfter) {
		this.searchAfter = searchAfter;
	}

	@Override
	public String toString() {
		return super.toString() + " [pageSize=" + pageSize + ", pageNum=" + pageNum + ", totalPage=" + totalPage
				+ ", totalCount=" + totalCount + ", firstPage=" + firstPage + ", lastPage=" + lastPage
				+ ", list.size=" + (list == null ? 0 : list.size())
				+ ", searchAfter=" + searchAfter + "]";
	}

}
